package com.koron.order.linepatrol.base.mapper;

import com.koron.order.linepatrol.base.bean.po.PatrolEnvCheckPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 巡视工单-巡视点_巡视环境_检查项从表(PatrolEnvCheck)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-26 15:24:42
 */
public interface PatrolEnvCheckMapper {

    int insertOrUpdate(PatrolEnvCheckPo patrolEnvCheck);

    int insertOrUpdateBatch(@Param("list") List<PatrolEnvCheckPo> patrolEnvCheckList);

    int insert(PatrolEnvCheckPo patrolEnvCheck);

    int insertBatch(@Param("list") List<PatrolEnvCheckPo> patrolEnvCheckList);

    int update(PatrolEnvCheckPo patrolEnvCheck);

    int deleteById(String id);

    PatrolEnvCheckPo queryById(String id);

    List<PatrolEnvCheckPo> queryList(PatrolEnvCheckPo patrolEnvCheck);

    int deleteByPatrolPointIds(@Param("list") List<String> patrolPointIds);
}